package com.example.demo.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.springframework.stereotype.Component;

/**
 * 功能描述：
 *用于ES查询的图书记录文档
 * @Author: Zhanghf
 * @Date: 2021/12/18 9:30
 */
@Component
public class BookBySearch {
     private Integer id;
    private String name;
    private String type;
    private String author;
    private String role;

    @Override
    public String toString() {
        return "BookBySearch{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", type='" + type + '\'' +
                ", author='" + author + '\'' +
                ", role='" + role + '\'' +
                '}';
    }

    public BookBySearch(Integer id, String name, String type, String author, String role) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.author = author;
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public BookBySearch(Integer id, String name, String type, String author) {
        this.id = id;
        this.name = name;
        this.type = type;
        this.author = author;
    }

    public BookBySearch() {
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }
}
